package com.greate.community.auth.wechatauth.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 微信认证接口请求参数名
 *
 * @author xzx
 * @date 2022/1/29 18:29
 */
@ConfigurationProperties("wechat.config")
@Component
@Data
public class WeChatProperties {

    // 公众号的唯一标识
    private String appId = "appid";

    private String clientId = "client_id";

    private String secret = "secret";

    private String clientSecret = "client_secret";

    // 重定向后会带上state参数，开发者可以填写a-zA-Z0-9的参数值，最多128字节
    private String state = "state";

    // 无论直接打开还是做页面302重定向时候，必须带此参数
    private String wechatRedirect = "wechat_redirect";

}
